package com.zx.wangyixinwen.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.zx.wangyixinwen.R;
import com.zx.wangyixinwen.fragment.HeadlinesFragment;

/**
 * Created by dllo on 16/1/13.
 */
public class NewsDetailsActivity extends AppCompatActivity {
    private WebView mWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_news_details);
        mWebView = (WebView) findViewById(R.id.webView_news_details);
        Intent intent = getIntent();
        String docid = intent.getStringExtra("puttong");
        String url = "http://c.3g.163.com/nc/article/" + docid + "/full.html";
        WebSettings webSettings = mWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webSettings.setSupportZoom(true);
        mWebView.setWebViewClient(new WebViewClient());
        mWebView.loadUrl(docid);
    }





}
